package com.file;

import java.io.File;
import java.io.FileNotFoundException;
import java.util.Scanner;

import com.constants.Constants;

public class FileRead {

	File file;
	Scanner s;
	FileRead(String fileName){
		fileName=Constants.FILE_SRC+fileName;
		file = new File(fileName);
		try {
			s = new Scanner(file);
		} catch (FileNotFoundException e) {
			
			e.printStackTrace();
		}
	}
	
	void print(){
		if(file==null){
			System.out.println("File has not been initialized");
			return;
		}
		while(s.hasNext()){
			System.out.println(s.next());
		}
	}
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		FileRead  f = new FileRead("RecallR.txt");
		f.print();
	}

}
